#include("../_inc/_layout.html")
#@layout(category.name + " - Jboot Fly", category.meta_keywords, category.meta_description,"jie")
#define content()
#include("../_inc/_navigation.html",cid = category.id )

<div class="layui-container">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md8">

            #include("../_inc/_top_posts.html",title = "置顶",level = 2,categoryId = category.id)

            <div class="fly-panel" style="margin-bottom: 0;">

                <div class="fly-panel-title fly-filter">
                    <a href="/post/category/#(category.id)" class="#(status==null && r==null ? 'layui-this' : '')">综合</a>
                    <span class="fly-mid"></span>
                    <a href="/post/category/#(category.id)?status=0" class="#(status==0 ? 'layui-this' : '')">未结</a>
                    <span class="fly-mid"></span>
                    <a href="/post/category/#(category.id)?status=9" class="#(status==9 ? 'layui-this' : '')">已结</a>
                    <span class="fly-mid"></span>
                    <a href="/post/category/#(category.id)?r=1" class="#(r==1 ? 'layui-this' : '')">精华</a>
                </div>

                <ul class="fly-list">
                    #if(pageData.pageNumber == 1)
                    #topPosts(level = 1 , categoryId = category.id)
                        #for(post : posts)
                        <li>
                            <a href="/user/#(post.user.id)" class="fly-avatar">
                                <img src="#(post.user.avatar)"
                                     alt="#(post.user.nickname)">
                            </a>
                            <h2>
                                <a href="/post/#(post.id)">#(post.title)</a>
                            </h2>
                            <div class="fly-list-info">
                                <a href="/user/#(post.user.id)" link>
                                    <cite>#(post.user.nickname)</cite>
                                    <!--
                                    <i class="iconfont icon-renzheng" title="认证信息：XXX"></i>
                                    <i class="layui-badge fly-badge-vip">VIP3</i>
                                    -->
                                </a>
                                <span>刚刚</span>

                                <span class="fly-list-kiss layui-hide-xs" title="悬赏元宝"><i class="layui-icon" style="color: #FF7200;font-size: 14px;">&#xe62b;</i>  #(post.pay_point)</span>
                                #if(post.isFinished())
                                <span class="layui-badge fly-badge-accept layui-hide-xs">已结</span>
                                #end
                                <span class="fly-list-nums">
                                    <i class="iconfont icon-pinglun1" title="回答"></i> #(post.comment_count)
                                </span>
                            </div>
                            <div class="fly-list-badge">
                                #if(post.level)
                                <span class="layui-badge layui-bg-black">置顶#(post.level)</span>
                                #end
                                #if(post.isRecommend())
                                <span class="layui-badge layui-bg-red">精帖</span>
                                #end
                            </div>
                        </li>
                        #end
                    #end
                    #end


                    #for(post : pageData.list)
                    <li>
                        <a href="/user/#(post.user_id)" class="fly-avatar">
                            <img src="#(post.user.avatar)"
                                 alt="#(post.user.nickname)">
                        </a>
                        <h2>
                            <a href="/post/#(post.id)">#(post.title)</a>
                        </h2>
                        <div class="fly-list-info">
                            <a href="/user/#(post.user_id)" link>
                                <cite>#(post.user.nickname)</cite>
                                <!--
                                <i class="iconfont icon-renzheng" title="认证信息：XXX"></i>
                                <i class="layui-badge fly-badge-vip">VIP3</i>
                                -->
                            </a>

                            <span class="fly-list-kiss layui-hide-xs" title="悬赏元宝"><i class="layui-icon" style="color: #FF7200;font-size: 14px;">&#xe62b;</i> #(post.pay_point)</span>
                            <span>#date(post.created,"yyyy-MM-dd")</span>
                            #if(post.isFinished())
                            <span class="layui-badge fly-badge-accept layui-hide-xs">已结</span>
                            #end
                            <span class="fly-list-nums">
                                <i class="iconfont icon-pinglun1" title="回答"></i> #(post.comment_count)
                            </span>
                        </div>
                        <div class="fly-list-badge">
                            #if(post.isRecommend())
                            <span class="layui-badge layui-bg-red">精帖</span>
                            #end
                        </div>
                    </li>
                    #end

                </ul>

                <!-- <div class="fly-none">没有相关数据</div> -->

                #include("../_inc/_pagination.html")

            </div>
        </div>
        <div class="layui-col-md4">

            #include("../_inc/_hot_posts.html")

        </div>
    </div>
</div>
#end